package com.lishe.lishe.lishe.module.me.adapter;

import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;

import com.lishe.lishe.lishe.module.me.bean.CouponsObject;

import java.util.LinkedList;

/**
 * Created by zhcasecom on 2017/8/23.
 */

public class CouponsAdapter extends BaseAdapter {
    private Context context;
    private LinkedList<CouponsObject> list;

    public CouponsAdapter(Context context, LinkedList<CouponsObject> list) {
        this.context = context;
        this.list = list;

    }

    @Override
    public int getCount() {
        return list == null ? 0 : list.size();
    }

    @Override
    public Object getItem(int i) {
        return list.get(i);
    }

    @Override
    public long getItemId(int i) {
        return i;
    }

    @Override
    public View getView(int i, View view, ViewGroup viewGroup) {
        return null;
    }
}
